@echo off
 
set str=D:\soft\todolist\ToDoList.ini
set DIR=%date:~0,4%%date:~5,2%%date:~8,2%-%time:~0,2%%time:~3,2%%time:~6,2%
 
for /f "tokens=1 delims=." %%a in ("%str%") do 7z  a %%a_%DIR%.zip %str% -pSmile165185 & copy %%a_%DIR%.zip .  & del %%a_%DIR%.zip
pause 